const Router = require('koa-router')
const { verifyAuth } = require('../middleware/authMiddleware')
const {
  getScoresList,
  updateScore
} = require('../controller/scoresController')
const scoresRouter = new Router({prefix:"/scores"})

scoresRouter.post('/list',verifyAuth,getScoresList)


scoresRouter.patch('/:id',verifyAuth,updateScore)
module.exports = scoresRouter